import { Navigate } from 'react-router-dom'
import { lazy } from 'react'
const Order = lazy(()=>import('../../view/Wxq/Order.jsx'))
const Details = lazy(()=>import('../../view/Wxq/O_child/details.jsx'))
const Record = lazy(()=>import('../../view/Wxq/O_child/record.jsx'))
const Detast = lazy(()=>import('../../view/Wxq/O_child/Detast.jsx'))
const Customer = lazy(()=>import('../../view/Wxq/customer.jsx'))
const Profiling = lazy(()=>import('../../view/Wxq/profiling.jsx'))
let routes = [
    {
        path: '/wxq/ord',
        element:<Order></Order>
    },
    {
        path: '/wxq/ord/details',
        element:<Details></Details>
    },
    {
        path: '/wxq/ord/OrderList',
        element:<Detast></Detast>
    },
    {
        path: '/wxq/ord/record',
        element:<Record></Record>
    },
    {
        path: '/wxq/cus',
        element:<Customer></Customer>
    },
    {
        path: '/wxq/pro',
        element:<Profiling></Profiling>
    },
    {
        path: '/',
        element: <Navigate to="/wxq/ord" />
    }
]

export default routes